﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true"
    CodeFile="UserClassTasks.aspx.cs" Inherits="Theme_DL_UserClassTasks" %>

<%@ Register TagPrefix="radU" Namespace="Telerik.WebControls" Assembly="RadUpload.Net2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        }
        
        function AutoColseAler()
        {
            showFloat();
            setTimeout("ShowNo()",3000);
        }
    </script>

    <div>
        <table border="0" cellspacing="0" width="868" cellpadding="0" align="center">
            <tr>
                <td class="jdstyle">
                    <a href="Default.aspx">首页</a> > <a href="MyCourse.aspx">我的课堂</a> > <a href="MyProject.aspx">
                        我的班级作业</a>
                </td>
            </tr>
        </table>
        <table width="868" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top" class="leftbg" width="129">
                    <table width="195" border="0" cellspacing="0" cellpadding="0" class="tit3">
                        <tr>
                            <td style="padding-left: 0">
                                <br style="height: 8px; line-height: 8px" />
                                <table width="158" border="0" cellspacing="0" cellpadding="0" align="center">
                                    <tr>
                                        <td class="button2">
                                            <a href="MyMsg.aspx">我的消息</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="EditPWD.aspx">修改密码</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="EditUser.aspx" <%--onclick="LeftClick('1')"--%> target="_self">个人资料</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="StudyCenter.aspx">我的课堂</a>
                                        </td>
                                    </tr>
                                    <%--<tr>
                                        <td class="button1">
                                            <a href="MyProject.aspx" onclick="LeftClick('2')">我的班级
                                        </td>
                                    </tr>--%>
                                    <tr>
                                        <td class="button2">
                                            <a href="SelectCourse.aspx" <%--onclick="LeftClick('3')"--%>>选课中心</a>
                                        </td>
                                    </tr>
                                    <%--<tr>
                                        <td class="button2">
                                            <a href="MyCourse.aspx" onclick="LeftClick('3')">我的课程
                                        </td>
                                    </tr>--%>
                                    <tr>
                                        <td class="button2">
                                            <a href="MyStowResource.aspx" <%--onclick="LeftClick('4')"--%>>我的会议</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>我的作业</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>我的考试</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>通知公告</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>在线调查</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>学分查询</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="button2">
                                            <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>证书打印</a>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <%--<left:left ID="left1" runat="server" />--%>
                </td>
                <td align="right" valign="top" style="padding-left: 10px;">
                    <table width="678" border="0" cellspacing="0" cellpadding="0" class="border_style2"
                        id="Table2" runat="server">
                        <tr>
                            <th>
                                作业回复
                            </th>
                        </tr>
                    </table>
                    <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table1" runat="server"
                        style="text-align: left;">
                        <tr>
                            <td colspan="2">
                                作业要求
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label runat="server" ID="lbl_TaskTitle"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label runat="server" ID="lbl_TaskContent"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                附件：<asp:Label runat="server" ID="lbl_TaskAccessory"></asp:Label>
                            </td>
                            <td>
                                结束时间：<asp:Label runat="server" ID="lbl_endtime"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table3" runat="server"
                        style="text-align: left;">
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="lbl_UserName" runat="server" ForeColor="Red"></asp:Label>的作业
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="lbl_MyTaskTitle" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label runat="server" ID="lbl_MyTaskContent"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                附件：
                                <asp:Label runat="server" ID="lbl_MyTaskAccessory"></asp:Label>
                            </td>
                            <td>
                                完成时间：<asp:Label runat="server" ID="lbl_Finishtime"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table4" runat="server"
                        style="text-align: left;">
                        <tr>
                            <td>
                                教师评价
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:GridView ID="gv_TeacherReply" runat="server" AutoGenerateColumns="False" Width="100%">
                                    <Columns>
                                        <asp:TemplateField ShowHeader="False">
                                            <ItemTemplate>
                                                <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table3" runat="server"
                                                    style="text-align: left;">
                                                    <tr>
                                                        <td>
                                                            教师：<%#Eval("Name")%>
                                                        </td>
                                                        <td>
                                                            附件：
                                                            <%#Eval("AccessoryName")%>
                                                        </td>
                                                        <td>
                                                            完成时间：<%#Eval("CreateDate")%>
                                                        </td>
                                                        <td>
                                                            得分：<%#Eval("Point")%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="4">
                                                            <%#Eval("Content") %>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        No Data!
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table5" runat="server"
                        style="text-align: left;">
                        <tr>
                            <td colspan="2">
                                作业回复
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:GridView ID="gv_UserReply" runat="server" AutoGenerateColumns="False" Width="100%">
                                    <Columns>
                                        <asp:TemplateField ShowHeader="False">
                                            <ItemTemplate>
                                                <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table3" runat="server"
                                                    style="text-align: left;">
                                                    <tr>
                                                        <td>
                                                            回复人：<%#Eval("Name")%>
                                                        </td>
                                                        <td>
                                                            附件：
                                                            <%#Eval("AccessoryName")%>
                                                        </td>
                                                        <td>
                                                            完成时间：<%#Eval("CreateDate")%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3">
                                                            <%#Eval("Content") %>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        No Data!
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <hr />
                    <table width="670" border="0" cellpadding="0" cellspacing="0" class="border_style2">
                        <tr>
                            <td colspan="2">
                                我的回复
                            </td>
                        </tr>
                        <tr>
                            <td>
                                内容
                            </td>
                            <td>
                                <asp:TextBox ID="txt_MyTaskContent" runat="server" Width="297px" TextMode="MultiLine"
                                    Rows="6" BorderWidth="1px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfv_txt_MyTaskContent" runat="server" ErrorMessage="*"
                                    ControlToValidate="txt_MyTaskContent"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                附件标题
                            </td>
                            <td>
                                <asp:TextBox ID="txt_MyAccessoryTitle" runat="server" Width="297px" MaxLength="36"
                                    BorderWidth="1px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                附件
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lbl_MyAccessoryTitle"></asp:Label>
                                <asp:Label runat="server" ID="lbl_MyAccessoryid" Visible="false"></asp:Label>
                                <a href="#" onclick="showFloat();">上传新附件</a>
                                <asp:Label ID="lbl_UploadFile" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="tree-bottom-bg">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="inputBotton2" OnClick="btnSave_Click" />&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="tree-bottom-bg">
                                <asp:Label runat="server" ID="lbl_err_msg" ForeColor="Red" Visible="false"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <br />
                </td>
            </tr>
        </table>
    </div>
    <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
        background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
        left: 0; top: 0; display: none; overflow: hidden;">
    </div>
    <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
        width: 678px; z-index: 1001; position: absolute; display: none; top: 32%; left: 47%;
        margin: -200px 0 0 -400px;">
        <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                <tr>
                    <th>
                        &nbsp;
                    </th>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lbl_msg_Description" runat="server" Text="上传"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <radU:RadProgressManager ID="Radprogressmanager1" Width="100%" runat="server" />
                        <radU:RadProgressArea ID="progressArea1" Width="100%" runat="server">
                        </radU:RadProgressArea>
                        <br />
                        <asp:FileUpload ID="FileUpload1" runat="server" Width="80%" />
                        <asp:Button ID="btn_Back" runat="server" CssClass="inputBotton2" Text="上传" OnClick="btnUpload_Click" />
                        <br />
                        <asp:Label ID="lbl_FileUpload_msg_FileType" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tree-bottom-bg1">
                        <input id="btn_colse" type="button" value='关闭' class="inputBotton2" onclick="ShowNo()" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
